package com.neutech.neureg.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import com.neutech.neureg.mapper.RegMapper;
import com.neutech.neureg.po.Patient;
import com.neutech.neureg.service.RegService;
@Service
public class RegServiceImpl implements RegService{
	@Autowired
	private RegMapper regMapper;
	@Override
	public Patient findPatient(int id){
		return regMapper.findPatientById(id);
	}
	@Override
	public void delPatient(int id){
		regMapper.delPatientById(id);
	}
	@Override
	public void updatePatient(Patient patient){
		regMapper.updatePatientById(patient);
	}
	@Override
	public void insertPatient(Patient patient){
		regMapper.insertPatient(patient);
	}
}
